﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace UWCSE.CompleterVSPackage
{
    class Result
    {
        private readonly string str;
        public Result(string str)
        {
            this.str = str;
        }

        public override string ToString()
        {
            return CompletionText;
        }

        public string CompletionText
        {
            get
            {
                int firstSpace = str.IndexOf(' ');
                return str.Substring(firstSpace + 1);
            }
        }
    }
}
